/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package polyhedron;

import com.jme3.math.ColorRGBA;
import com.jme3.math.Vector3f;
import com.jme3.renderer.Camera;
import com.jme3.scene.Node;

/**
 *
 * @author ryan
 */
public class OrientationNode
{
    private OrientationNode() { }
    public static Node construct(String nodeName)
    {
        Node self;
        if(nodeName != null)
        {
            self = new Node(nodeName);
        }
        else
        {
            self = new Node("Orientation");
        }
        Vector3f[] xLineData = {new Vector3f(0,0,0), new Vector3f(0.25f,0,0)};
        Vector3f[] yLineData = {new Vector3f(0,0,0), new Vector3f(0,0.25f,0)};
        Vector3f[] zLineData = {new Vector3f(0,0,0), new Vector3f(0,0,0.25f)};
        Utilities.plotLine(xLineData, 3, ColorRGBA.Blue, self);
        Utilities.plotLine(yLineData, 3, ColorRGBA.Green, self);
        Utilities.plotLine(zLineData, 3, ColorRGBA.Red, self);
        return self;
    }
}